import { CurrentTimeInfo } from "@/model/playing-info.model";
import { Subject } from "rxjs";

/**
 * 控制audio的参数
 */
export interface AudioActionParams {
  /**
   * 是否暂停
   */
  isPlaying?: boolean;
  /**
   * 当前进度信息
   */
  currentTimeInfo?: CurrentTimeInfo;
}

export const AudioAction: Subject<AudioActionParams> = new Subject();
